var should = require('should');
var dealRewardService = require('../../app/services/dealRewardService');
var config = require('../config');

suite('dealRewardService', function () {
    suite('dealRewardList', function () {
        test('处理重复类型奖励', function () {
            var reward = [
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: config.equip_id,
                    reward_num: 1,
                    reward_type: 5,
                    reward_value: 0
          },
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: 0,
                    reward_num: 1000,
                    reward_type: 2,
                    reward_value: 0
          },
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: 0,
                    reward_num: 1000,
                    reward_type: 1,
                    reward_value: 0
          },
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: config.equip_id,
                    reward_num: 1,
                    reward_type: 5,
                    reward_value: 0
          },
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: config.equip_id,
                    reward_num: 1,
                    reward_type: 5,
                    reward_value: 0
          },
                {
                    attr_num: 0,
                    hole_num: 0,
                    reward: 112010,
                    reward_num: 1,
                    reward_type: 5,
                    reward_value: 0
          }
   ];
            var reward_list = dealRewardService.dealRewardList(reward);
        });
    });
});
